<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>登陆</title>
	<link rel="stylesheet" href="/static/new/css/common.css">
	<link rel="stylesheet" href="/static/new/css/swiper.min.css">
	<script src="/static/new/js/jquery.js"></script>
	<script src="/static/new/js/swiper.min.js"></script>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
	<style>
		.logo_section2 .last input{
			width: 17px;
			position: relative;
			top: 3px;
		}
		.layui-unselect{
			position: relative;
			top: -5px;
			margin-right: 0px;
			padding-right: 0px;
		}

	</style>
</head>
<body>
<div class="logo_section1">
	<img src="{$sys.logo}" alt="">
</div>
<div class="logo_section2">
	<div class="container2">
		<div class="layui-form">
			<div class="f1">
				<img class="im1" src="/static/new/images/login_icon_user.png" alt="" class="im1">
				<input type="text" name="username" id="username"  class="input1" placeholder="请填写手机号">
			</div>
			<div class="f1">
				<img class="im1" src="/static/new/images/login_icon_pw.png" alt="" class="im2">
				<input type="password"  name="password" id="password" class="input1" placeholder="请填写密码">
			</div>
			<div class="sub">
				<input type="submit" lay-filter="sub" lay-submit value="登录">
			</div>
			<div class="us clearfix">
				<a href="{:url('forget')}" class="a1">忘记密码?</a>

				<a href="{:url('regist')}" class="a2">去注册</a>
			</div>
			<div class="us clearfix">

				<a href="{:url('user/xiazai/app_dol')}" class="a2">去下载</a>

			</div>

			<div class="last">
				<input type="radio" name="sex" value="同意并遵守" title="同意并遵守" checked>
				<a href="{:url('the_registration_agreement')}">《用户协议》</a>
			</div>
		</div>
	</div>
</div>
</body>
<script src="/static/user/js/mui.min.js"></script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
	layui.use(['form', 'layer'], function () {
		var form = layui.form,$ = layui.jquery;
		// 登录提交监听
		form.on('submit(sub)', function (data) {
			var loading = layer.load(1, {shade: [0.1, '#fff']});
			$.post("{:url('index')}",data.field,function(res){
				layer.close(loading);
				if(res.code > 0){
					layer.msg(res.msg,{time:1000,icon:1},function(){
						location.href = "{:url('index/index')}";
					});
				}else{
					layer.msg(res.msg,{time:1000,icon:2});
					$('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
				}
			});
		})
	})
</script>
<script>
	$(".input1").focus(function () {
		$(".last").hide()
	})
	$(".input1").blur(function () {
		$(".last").show()
	})
</script>
<script>


	mui.init({
		swipeBack:true //启用右滑关闭功能
	});
</script>
<script>
	$(function () {
		var dd= $(window).height();
		$("body").css("height",dd);
	})
</script>
</html>